package com.sscw.task.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.guaike.core.mybatis.entity.BasePO;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * Mqtt订阅消息记录表
 * </p>
 *
 * @author system
 * @since 2025-01-24
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("g_record_mqtt_message")
public class GRecordMqttMessagePO extends BasePO {

    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * mqtt的消息id
     */
    private String messageId;
    /**
     * mqtt的父级topic
     */
    private String parentTopic;
    /**
     * mqtt的子级topic
     */
    private String childTopic;
    /**
     * 指令码
     */
    private String commandCode;
    /**
     * 设备序列号
     */
    private String serialNumber;
    /**
     * 消息类型（字典码：50032）
     */
    private Integer messageType;
    /**
     * g_record_game表id
     */
    private Long gameId;
    /**
     * 消息数据
     */
    private String message;
    /**
     * 是否处理
     */
    private Boolean status;
    /**
     * 逻辑删除（非0:已删除, 0:未删除）
     */
    @TableLogic(value = "0", delval = "now()")
    private Long deleted;



}
